package com.aiwei.tdjk.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * Created by yanfeng on 2018/1/16.
 */
@NoArgsConstructor
@AllArgsConstructor
public enum CustomsHandbookStatusEnum {

    unVerification(1,"未核销"), verification(2,"核销");

    @Getter
    private Integer code;
    @Getter
    private String info;


    public static CustomsHandbookStatusEnum getValue(Integer code) {
        final CustomsHandbookStatusEnum[] values = CustomsHandbookStatusEnum.values();
        for (CustomsHandbookStatusEnum value : values) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }
}
